package com.swpu.zdl.service.impl;

import com.swpu.zdl.mapper.XuanKeMapper;
import com.swpu.zdl.pojo.XuanKe;
import com.swpu.zdl.service.XuanKeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XuanKeServiceImpl implements XuanKeService {
    @Autowired
    private XuanKeMapper xuanKeMapper;
    @Override
    public Boolean addXuanKe(XuanKe xuanKe) {
        return xuanKeMapper.addXuanKe(xuanKe);
    }

    @Override
    public Boolean deleteXuanKe(String keXuHao) {
        return xuanKeMapper.deleteXuanKe(keXuHao);
    }

    @Override
    public Boolean updateXuanKe(String keXuHao, XuanKe xuanKe) {
        return xuanKeMapper.updateXuanKe(keXuHao, xuanKe);
    }

    @Override
    public List<XuanKe> getAll() {
        return xuanKeMapper.getAll();
    }

    @Override
    public List<XuanKe> getAllMsg() {
        return xuanKeMapper.getAllMsg();
    }

    @Override
    public XuanKe getMsgWithStudent(String keXuHao) {
        return xuanKeMapper.getMsgWithStudent(keXuHao);
    }
}
